﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;

namespace DataModel.Shapes
{
    public class Sphere : SimpleShape
    {
        public Sphere(float radius, Color color, float x, float y,float z)
            : base(radius, color, x, y, z)
        {
            this.Vertices = new List<Point3D>();

            UpdateVertices(x, y, z);
        }

        public override void DrawShape()
        {
            throw new NotImplementedException();
            //GL.Color3(System.Drawing.Color.DarkRed);
            //GL.LoadIdentity();
            
            //glutSolidSphere(5.0, 20.0, 20.0);
            //glFlush(); 
        }

        public override void UpdateVertices(float x, float y, float z)
        {
            if (this.Vertices == null)
                return;

            this.X = x;
            this.Y = y;
            this.Z = z;

            this.Vertices.Add(new Point3D(x, y, z));
        }
    }
}
